home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.3 / GetAnchor.3 < prev    next >
Encoding:
Text File  |  1995-07-26  |  5.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((3333))))              TTTTkkkk (((( ))))               TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((3333))))
  5.  
  6.  
  7.  
  8.      _________________________________________________________________
  9.  
  10.      NNNNAAAAMMMMEEEE
  11.           Tk_GetAnchor, Tk_NameOfAnchor -  translate  between  strings
  12.           and anchor positions
  13.  
  14.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  15.           ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
  16.  
  17.           Tk_Anchor
  18.           TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((_i_n_t_e_r_p, _s_t_r_i_n_g, _a_n_c_h_o_r_P_t_r))))
  19.  
  20.           char *
  21.           TTTTkkkk____NNNNaaaammmmeeeeOOOOffffAAAAnnnncccchhhhoooorrrr((((_a_n_c_h_o_r))))
  22.  
  23.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  24.           Tcl_Interp  *_i_n_t_e_r_p      (in)      Interpreter  to  use  for
  25.                                              error reporting.
  26.  
  27.           char        *_s_t_r_i_n_g      (in)      String containing name of
  28.                                              anchor   point:   one  of
  29.                                              ``n'',   ``ne'',   ``e'',
  30.                                              ``se'',   ``s'',  ``sw'',
  31.                                              ``w'',     ``nw'',     or
  32.                                              ``center''.
  33.  
  34.           int         *_a_n_c_h_o_r_P_t_r   (out)     Pointer  to  location  in
  35.                                              which   to  store  anchor
  36.                                              position corresponding to
  37.                                              _s_t_r_i_n_g.
  38.  
  39.           Tk_Anchor   _a_n_c_h_o_r       (in)      Anchor   position,   e.g.
  40.                                              TTTTCCCCLLLL____AAAANNNNCCCCHHHHOOOORRRR____CCCCEEEENNNNTTTTEEEERRRR.
  41.      _________________________________________________________________
  42.  
  43.  
  44.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  45.           TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr  places  in  *_a_n_c_h_o_r_P_t_r  an   anchor   position
  46.           (enumerated  type TTTTkkkk____AAAAnnnncccchhhhoooorrrr) corresponding to _s_t_r_i_n_g,  which
  47.           will  be  one  of  TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNN,  TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNNEEEE,  TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____EEEE,
  48.           TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____SSSSEEEE,    TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____SSSS,   TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____SSSSWWWW,   TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____WWWW,
  49.           TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNNWWWW, or  TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____CCCCEEEENNNNTTTTEEEERRRR.   Anchor  positions  are
  50.           typically used for indicating a point on an object that will
  51.           be used to position  that  object,  e.g.  TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNN  means
  52.           position  the top center point of the object at a particular
  53.           place.
  54.  
  55.           Under normal circumstances the return value  is  TTTTCCCCLLLL____OOOOKKKK  and
  56.           _i_n_t_e_r_p  is unused.  If _s_t_r_i_n_g doesn't contain a valid anchor
  57.           position or an abbreviation of one of these names,  then  an
  58.           error  message  is  stored  in  _i_n_t_e_r_p->_r_e_s_u_l_t, TTTTCCCCLLLL____EEEERRRRRRRROOOORRRR is
  59.           returned, and *_a_n_c_h_o_r_P_t_r is unmodified.
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/23/95)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((3333))))              TTTTkkkk (((( ))))               TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((3333))))
  71.  
  72.  
  73.  
  74.           TTTTkkkk____NNNNaaaammmmeeeeOOOOffffAAAAnnnncccchhhhoooorrrr is  the  logical  inverse  of  TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr.
  75.           Given  an  anchor  position such as TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNN it returns a
  76.           statically-allocated string  corresponding  to  _a_n_c_h_o_r.   If
  77.           _a_n_c_h_o_r  isn't  a  legal  anchor value, then ``unknown anchor
  78.           position'' is returned.
  79.  
  80.  
  81.      KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  82.           anchor position
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 7/23/95)
  130.  
  131.  
  132.  
  133.